package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.SetEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员隐私设置信息表 0-是 1-否模型类
 * 
 * @author pbuilder generated
 * @date 2019-08-07 13:56:48
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Set extends SetEntity {

	/**
	 * 构造一个空会员隐私设置信息表 0-是 1-否模型对象
	 */
	public Set(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员隐私设置信息表 0-是 1-否模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Set(SetEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员隐私设置信息表 0-是 1-否模型对象
	 * 
	 * @param other 其它对象
	 */
	public Set(Set other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置主键
	 * 
	 * @param id 主键
	 * @return 当前对象
	 */
    public Set id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public Set memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public Boolean getGroupToAll() {
    	return groupToAll;
    }

    /**
	 * 设置向所有人展示网红店铺排名 0:否 1:是
	 * 
	 * @param groupToAll 向所有人展示网红店铺排名 0:否 1:是
	 * @return 当前对象
	 */
    public Set groupToAll(Boolean groupToAll) {
    	this.groupToAll = groupToAll;
    	return this;
    }

	@Override
	public Boolean getGroupToFans() {
    	return groupToFans;
    }

    /**
	 * 设置向我的粉丝展示网红店铺排名 0:否 1:是
	 * 
	 * @param groupToFans 向我的粉丝展示网红店铺排名 0:否 1:是
	 * @return 当前对象
	 */
    public Set groupToFans(Boolean groupToFans) {
    	this.groupToFans = groupToFans;
    	return this;
    }

	@Override
	public Boolean getIsReceiveAllMsg() {
    	return isReceiveAllMsg;
    }

    /**
	 * 设置是否接收所有人消息 0:否 1:是
	 * 
	 * @param isReceiveAllMsg 是否接收所有人消息 0:否 1:是
	 * @return 当前对象
	 */
    public Set isReceiveAllMsg(Boolean isReceiveAllMsg) {
    	this.isReceiveAllMsg = isReceiveAllMsg;
    	return this;
    }

	@Override
	public Boolean getIsReceiveFollowMsg() {
    	return isReceiveFollowMsg;
    }

    /**
	 * 设置是否接受我关注用户的消息,0:否 1:是
	 * 
	 * @param isReceiveFollowMsg 是否接受我关注用户的消息,0:否 1:是
	 * @return 当前对象
	 */
    public Set isReceiveFollowMsg(Boolean isReceiveFollowMsg) {
    	this.isReceiveFollowMsg = isReceiveFollowMsg;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public Set createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public Set modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }
}
